package com.hiray.droidplugin.ui

import android.app.Application
import android.content.Context
import com.liulishuo.filedownloader.FileDownloader
import com.morgoo.droidplugin.PluginHelper

class App: Application() {

    override fun onCreate() {
        super.onCreate()
        FileDownloader.setup(this)
        PluginHelper.getInstance().applicationOnCreate(this)
    }

    override fun attachBaseContext(base: Context?) {
        PluginHelper.getInstance().applicationAttachBaseContext(base)
        super.attachBaseContext(base)
    }
}